package ooday03test2;

public abstract class Animal {
    public String name;
    public int age;
    public String color;

    //构造方法
    public Animal() {
    }

    public Animal(String name, int age, String color) {
        this.name = name;
        this.age = age;
        this.color = color;
    }
    //普通方法
    public void drink(){
        System.out.println(name+"在喝水");
    }
    //抽象方法
    public abstract void eat();
}
